// To save almost 230kb of JS, we keep only the usefull services we are using with Uditis websites // This file is not minified, because it's easier to read the code and add new services if needed //MailChimp tarteaucitron.services.mailchimp = { "key": "mailchimp", "type": "api", "name": "Mailchimp", "needConsent": true, "cookies": ["MCPopupClosed", "bm_sv", "bm_sz", "_abck", "ak_bmsc", "_mcid"], "uri": "https://mailchimp.com/about/security/", "js": function () { "use strict"; if (tarteaucitron.user.mailChimpUserList === undefined) { return; } tarteaucitron.addScript("https://chimpstatic.com/mcjs-connected/js/users/" + tarteaucitron.user.mailChimpUserList + ".js", '', { 'async': true }); } }; // google analytics tarteaucitron.services.gtag = { "key": "gtag", "type": "analytic", "name": "Google Analytics (GA4)", "uri": "https://policies.google.com/privacy", "needConsent": true, "cookies": (function () { var googleIdentifier = tarteaucitron.user.gtagUa, tagUaCookie = '_gat_gtag_' + googleIdentifier, tagGCookie = '_ga_' + googleIdentifier; tagUaCookie = tagUaCookie.replace(/-/g, '_'); tagGCookie = tagGCookie.replace(/G-/g, ''); return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie, '_gcl_au']; })(), "js": function () { "use strict"; window.dataLayer = window.dataLayer || []; tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () { window.gtag = function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); var additional_config_info = (timeExpire !== undefined) ? { 'anonymize_ip': true, 'cookie_expires': timeExpire / 1000 } : { 'anonymize_ip': true }; if (tarteaucitron.user.gtagCrossdomain) { /** * https://support.google.com/analytics/answer/7476333?hl=en * https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain */ gtag('config', tarteaucitron.user.gtagUa, additional_config_info, { linker: { domains: tarteaucitron.user.gtagCrossdomain, } }); } else { gtag('config', tarteaucitron.user.gtagUa, additional_config_info); } if (typeof tarteaucitron.user.gtagMore === 'function') { tarteaucitron.user.gtagMore(); } }); } }; // Googlemaps tarteaucitron.services.maps_noapi = { key: "maps_noapi", type: "other", name: "Google Maps", needConsent: !0, cookies: ["NID", "OGPC", "1P_JAR", "CONSENT"], uri: "https://policies.google.com/privacy", js: function () { "use strict"; tarteaucitron.fallback(["googlemaps_embed"], function (n) { var t = n.getAttribute("id"), i = n.getAttribute("width"), r = n.getAttribute("height"), u = "https://www.google.com/maps/embed?pb=" + t; return ''; return video_frame; }); }, "fallback": function () { "use strict"; var id = 'vimeo'; tarteaucitron.fallback(['vimeo_player'], function (elem) { elem.style.width = elem.getAttribute('width') + 'px'; elem.style.height = elem.getAttribute('height') + 'px'; return tarteaucitron.engage(id); }); } }; // Youtube tarteaucitron.services.youtube = { key: "youtube", type: "video", name: "YouTube", uri: "https://policies.google.com/privacy", needConsent: !0, cookies: ["VISITOR_INFO1_LIVE", "YSC", "PREF", "GEUP"], js: function () { "use strict"; tarteaucitron.fallback(["youtube_player"], function (n) { var h = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(n, "title") || "Youtube iframe"), r = tarteaucitron.getElemAttr(n, "videoID"), t = tarteaucitron.getElemAttr(n, "srcdoc"), i = tarteaucitron.getElemAttr(n, "loading"), f = tarteaucitron.getElemAttr(n, "width"), e = "width=", o = tarteaucitron.getElemAttr(n, "height"), s = "height=", c = tarteaucitron.getElemAttr(n, "allowfullscreen"), l = tarteaucitron.getElemAttr(n, "start"), a = tarteaucitron.getElemAttr(n, "end"), u = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start", "end", "loop", "enablejsapi"].filter(function (t) { return tarteaucitron.getElemAttr(n, t) !== null }).map(function (t) { return t + "=" + tarteaucitron.getElemAttr(n, t) }).join("&"); return (tarteaucitron.getElemAttr(n, "loop") == 1 && (u = u + "&playlist=" + r), r === undefined) ? "" : (e += f !== undefined ? '"' + f + '" ' : '"" ', s += o !== undefined ? '"' + o + '" ' : '"" ', t = t !== undefined && t !== null && t !== "" ? 'srcdoc="' + t + '" ' : "", i = i !== undefined && i !== null && i !== "" ? "loading " : "", '